package com.fnzn.entranceGuard.mapper.sys;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fnzn.entranceGuard.entity.sys.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 用户角色表 Mapper 接口
 * </p>
 *
 * @author lengleng
 * @since 2017-10-29
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据当前登录用户id和小区id获取到角色id
     *
     * @param userId,communityId
     * @return list 角色id集合
     */
    List<SysUserRole> getRoleId(@Param("userId")String userId,@Param("communityId")String communityId);
}